/**
 * 文件名：AuthrityController.java
 * 创建时间：Jul 7, 20091:31:56 PM
 */
package com.lane.sidecn.security.web;

import java.io.IOException;
import java.io.PrintWriter;

import com.lane.core.web.BaseController;

/**
 * 权限控制类
 * @author 忽吉烈
 *
 */
public class AuthorityController extends BaseController {

	/**
	 * 未登录
	 * @throws IOException 
	 */
	public void noLogin() throws IOException
	{
		PrintWriter out = response.getWriter();
		out.println("noLogin");
		response.sendRedirect("/sidecn/acegilogin.jsp");
	}
	
	/**
	 * 没有权限访问资源
	 * @throws Exception
	 */
	public void noAuthority() throws Exception
	{
		PrintWriter out = response.getWriter();
		out.println("noAuthority");
	}
	
	/**
	 * 登录成功
	 * @throws Exception
	 */
	public void loginSuccess() throws Exception
	{
		PrintWriter out = response.getWriter();
		out.println("loginSuccess");
	}
	
	/**
	 * 登录失败
	 * @throws Exception
	 */
	public void loginFail() throws Exception
	{
		PrintWriter out = response.getWriter();
		out.println("loginFail");
	}
	
	/**
	 * 退出
	 * @throws Exception
	 */
	public void logout() throws Exception
	{
		PrintWriter out = response.getWriter();
		out.println("logout");
	}
}
